package weather.classes;

import java.util.Scanner;

public class Clear extends Weather {

    String weatherName = "Ясно";
    int ultraViolet = 0;

    public Clear() {
        setTemp(20);
    }

    public Clear(int temp) {
        setTemp(temp);
    }

    public void changeUV() {
        System.out.print("Введите УФ-индекс: ");
        Scanner scanner = new Scanner(System.in);
        ultraViolet = scanner.nextInt();
    }

    public void displayInfo() {
        System.out.println("Погода: " + weatherName + "\n" + "Температура: " + getTemp());
        System.out.println("УФ-индекс: " + ultraViolet);
    }
}